:root {
    --primary-color: #2196F3;
    --secondary-color: #1976D2;
    --background: #f8f9fa;
    --surface: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.container {
    display: grid;
    grid-template-rows: 35vh auto 100px;
    height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
}

.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    text-align: center;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#inviteCode {
    font-size: 4.5rem;
    letter-spacing: 12px;
    font-weight: 800;
    background: linear-gradient(45deg, #fff, #e0f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0.5rem 2rem;
    border-radius: 8px;
}

.status-bar {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 1.5rem;
    background: var(--surface);
    border-bottom: 2px solid var(--background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.status-item {
    position: relative;
    padding: 0.5rem 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.status-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

.status-item.active::after {
    content: "";
    position: absolute;
    bottom: -1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.main-content {
    position: relative;
    padding: 2rem;
    background: var(--background);
}

.notice-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.notice-panel.active {
    opacity: 1;
    visibility: visible;
}

#quizNotice {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 2rem 0;
    text-align: left;
    white-space: pre-wrap;
}

.start-quiz-btn {
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.start-quiz-btn:hover {
    transform: scale(1.05);
}

.question-panel {
    display: none;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    height: 100%;
}

.question-panel.active {
    display: grid;
}

#timer {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 2rem 0;
}

.leaderboard-panel {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.leaderboard {
    list-style: none;
}

.leaderboard li {
    padding: 1rem;
    margin: 0.5rem 0;
    background: var(--background);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: var(--surface);
    padding: 1.5rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.05);
}

.controls button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
}